<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateAnuncioDeVagaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_id}" for="id" />
                    <h:inputText id="id" value="#{anuncioDeVagaController.selected.id}" title="#{bundle.CreateAnuncioDeVagaTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_empresa}" for="empresa" />
                    <h:selectOneMenu id="empresa" value="#{anuncioDeVagaController.selected.empresa}" title="#{bundle.CreateAnuncioDeVagaTitle_empresa}" >
                        <f:selectItems value="#{empresaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_descricao}" for="descricao" />
                    <h:inputText id="descricao" value="#{anuncioDeVagaController.selected.descricao}" title="#{bundle.CreateAnuncioDeVagaTitle_descricao}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_titulo}" for="titulo" />
                    <h:inputText id="titulo" value="#{anuncioDeVagaController.selected.titulo}" title="#{bundle.CreateAnuncioDeVagaTitle_titulo}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_areaDeAtuacaoDoEstagio}" for="areaDeAtuacaoDoEstagio" />
                    <h:inputText id="areaDeAtuacaoDoEstagio" value="#{anuncioDeVagaController.selected.areaDeAtuacaoDoEstagio}" title="#{bundle.CreateAnuncioDeVagaTitle_areaDeAtuacaoDoEstagio}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_requisitos}" for="requisitos" />
                    <h:inputText id="requisitos" value="#{anuncioDeVagaController.selected.requisitos}" title="#{bundle.CreateAnuncioDeVagaTitle_requisitos}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_beneficios}" for="beneficios" />
                    <h:inputText id="beneficios" value="#{anuncioDeVagaController.selected.beneficios}" title="#{bundle.CreateAnuncioDeVagaTitle_beneficios}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_contatos}" for="contatos" />
                    <h:inputText id="contatos" value="#{anuncioDeVagaController.selected.contatos}" title="#{bundle.CreateAnuncioDeVagaTitle_contatos}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_dataDoAnuncio}" for="dataDoAnuncio" />
                    <h:inputText id="dataDoAnuncio" value="#{anuncioDeVagaController.selected.dataDoAnuncio}" title="#{bundle.CreateAnuncioDeVagaTitle_dataDoAnuncio}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_dataDeValidade}" for="dataDeValidade" />
                    <h:inputText id="dataDeValidade" value="#{anuncioDeVagaController.selected.dataDeValidade}" title="#{bundle.CreateAnuncioDeVagaTitle_dataDeValidade}" />
                    <h:outputLabel value="#{bundle.CreateAnuncioDeVagaLabel_quantidadeDeVagas}" for="quantidadeDeVagas" />
                    <h:inputText id="quantidadeDeVagas" value="#{anuncioDeVagaController.selected.quantidadeDeVagas}" title="#{bundle.CreateAnuncioDeVagaTitle_quantidadeDeVagas}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{anuncioDeVagaController.create}" value="#{bundle.CreateAnuncioDeVagaSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{anuncioDeVagaController.prepareList}" value="#{bundle.CreateAnuncioDeVagaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateAnuncioDeVagaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
